<div class="wrap">
    <div class="post-topheader">
        <div class="container">
            <ul class="search-category nav nav-pills">
                <li class="active">
                    <a href="/search?q=thinkphp框架怎么">
                        全部
                    </a>
                </li>
                <li>
                    <a href="/search?type=question&amp;q=thinkphp%E6%A1%86%E6%9E%B6%E6%80%8E%E4%B9%88">
                        问答
                    </a>
                </li>
            </ul>
            <form action="{:U('index/search/index')}" class="row">
                <div class="col-md-9">
                    <input class="input-lg form-control" type="text" name="q" value="<?php echo I('get.q') ?>"
                    placeholder="输入关键字搜索">
                </div>
                <div class="col-md-2">
                    <button type="submit" class="btn btn-primary btn-lg btn-block">
                        搜索
                    </button>
                </div>
            </form>
        </div>
    </div>
    <!-- end .post-topheader -->
    <div class="container mt20">
        <div class="row">
            <div class="col-md-9 main search-result">
                <h3 class="h5 mt0">
                    找到约
                    <strong>
                        32
                    </strong>
                    条结果
                </h3>
                <?php foreach ($res as  $v) { ?>

                    <section class="widget-question">
                        <h2 class="h4">
                            <a href="{:U('index/question/index',array('id'=>$v['id']))}" target="_blank">
                                <?php echo $v['title'] ?>
                            </a>
                        </h2>
                        <p class="excerpt">
                             <?php echo strip_tags(htmlspecialchars_decode($v['content']))  ?>
                        </p>
                    </section>
                    
                <?php } ?>
            </div>
            <div class="col-md-3 side">
                <ul class="list-unstyled">
                    <li>
                        <a target="_blank" href="https://www.google.com/?gws_rd=ssl#newwindow=1&amp;q=site:segmentfault.com+thinkphp框架怎么">
                            在 Google 中搜索 »
                        </a>
                    </li>
                    <li>
                        <a target="_blank" href="http://www.baidu.com/s?wd=site%3Asegmentfault.com%20thinkphp框架怎么">
                            在 百度 中搜索 »
                        </a>
                    </li>
                </ul>
            </div>
        </div>
    </div>
</div>